package com.ruoyi.web.controller.vantController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Zhijian;
import com.ruoyi.system.service.IZhijianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/zhijian")
public class ApiZhijianController extends BaseController {

    @Autowired
    private IZhijianService zhijianService;

    /**
     * 查询质检服务内容列表
     */

    @GetMapping("/list")
    public TableDataInfo list(Zhijian zhijian)
    {
        List<Zhijian> list = zhijianService.selectZhijianList(zhijian);
        return getDataTable(list);
    }

}
